// 使用Maybe重写 ex4，不要有if语句
const fp = require('lodash/fp')
const { Maybe, Container } = require('./support')

// let ex4 = function (n) {
//   if (n) {
//     return parseInt(n)
//   }
// }

let ex4 = (n) => Maybe.of(n).map(parseInt)

console.log(ex4(4.555))
